package com.javaclimb.music.service.impl;

import com.javaclimb.music.mapper.ConsumerMapper;
import com.javaclimb.music.po.Consumer;
import com.javaclimb.music.service.ConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ConsumerServiceImpl implements ConsumerService {
    @Autowired
    private ConsumerMapper consumerMapper;
    @Override
    public int getConsumerNum() {
        return consumerMapper.getConsumerNum();
    }

    @Override
    public List<Consumer> getConsumerList() {
        return consumerMapper.getConsumerList();
    }
}
